package com.kedsoft.andaily.task;

import com.kedsoft.andaily.service.NormalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * Created by Administrator on 2019/5/6.
 */
@Configuration
public class NormalTask {
    @Autowired
    NormalService normalService;
    @Scheduled(cron = "0 13 11 * * ?")
    public void job(){
        normalService.createTask();
    }

    @Scheduled(cron = "0 0/10 * * * ?")
    public void startNormal(){
        normalService.updateStatus();
    }
}
